﻿<Window x:Class="VmroleAuthor.Views.DeployWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       
        xmlns:vw="clr-namespace:VmroleAuthor.Views"  
        xmlns:vm="clr-namespace:VmroleAuthor.ViewModels" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"           
        mc:Ignorable="d" 
        Width="762"
        Height="672"
        Icon="../Img/deploy_32.png"
        Title="Deploy ResourceExtension"       
        Background="White" >
    <Window.Resources>
        <Style TargetType="Control" x:Key="WizardInputErrorTemplate">
            <Setter Property="Validation.ErrorTemplate">
                <Setter.Value>
                    <ControlTemplate>
                        <Border BorderBrush="Red" BorderThickness="0.5" >
                            <AdornedElementPlaceholder Name="myControl"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Style.Triggers>
                <Trigger Property="Validation.HasError" Value="true">
                    <Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        
        <Style TargetType="PasswordBox" BasedOn="{StaticResource WizardInputErrorTemplate}" />
        <Style TargetType="TextBox" BasedOn="{StaticResource WizardInputErrorTemplate}" />
    </Window.Resources>
    <vw:DeployView/>
</Window>
